/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.awt.Point;
/*     */ import java.io.File;
/*     */ import java.io.IOException;
/*     */ import java.util.ArrayList;
/*     */ import java.util.Collections;
/*     */ import java.util.Comparator;
/*     */ import java.util.HashMap;
/*     */ import java.util.HashSet;
/*     */ import java.util.LinkedHashMap;
/*     */ import java.util.List;
/*     */ import java.util.Locale;
/*     */ import java.util.Map;
/*     */ import java.util.Set;
/*     */ import java.util.UUID;
/*     */ import java.util.concurrent.ConcurrentHashMap;
/*     */ import java.util.concurrent.CopyOnWriteArrayList;
/*     */ import java.util.concurrent.Future;
/*     */ import java.util.regex.Matcher;
/*     */ import java.util.regex.Pattern;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.GuiScreen;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.inventory.ClickType;
/*     */ import net.minecraft.inventory.Container;
/*     */ import net.minecraft.inventory.Slot;
/*     */ import net.minecraft.util.text.ITextComponent;
/*     */ import net.minecraft.util.text.TextComponentString;
/*     */ import org.lwjgl.input.Keyboard;
/*     */ import org.lwjgl.input.Mouse;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ import org.yaml.snakeyamla.configuration.file.YamlConfiguration;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class vh
/*     */   extends bk
/*     */ {
/*  44 */   private static final Pattern za = Pattern.compile("[']([^']+)[']");
/*  45 */   private static final Pattern da = Pattern.compile("[%]([^%]+)[%]");
/*     */   
/*  47 */   public static final vh pa = new vh("default", new YamlConfiguration("DragonCore_Default"), new HashMap<>(), null, eos/moe/dragoncore/ng.q);
/*     */   public boolean qa;
/*     */   
/*     */   static {
/*  51 */     pa.open();
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean na;
/*     */   
/*     */   public Set<String> ea;
/*  58 */   public String ka = "";
/*     */   
/*     */   private bh xa;
/*     */   public eos/moe/dragoncore/ng aa;
/*  62 */   public String oa = "";
/*     */   
/*     */   public GuiScreen sa;
/*     */   
/*     */   private Map<String, pi> ua;
/*     */   
/*     */   public Map<String, pi> ia;
/*     */   
/*     */   private qp ta;
/*     */   private bh ha;
/*     */   private YamlConfiguration e;
/*  73 */   public final Map<String, YamlConfiguration> x = Collections.synchronizedMap(new LinkedHashMap<>());
/*     */   
/*     */   public pi a;
/*     */   
/*     */   public List<pi> p;
/*     */   public long n;
/*     */   public boolean b;
/*     */   public final String v;
/*     */   public final String k;
/*     */   public Map<String, bh> o;
/*     */   public int y;
/*  84 */   public List<String> h = new ArrayList<>();
/*  85 */   public ITextComponent u = (ITextComponent)new TextComponentString("");
/*  86 */   public ITextComponent j = (ITextComponent)new TextComponentString("");
/*     */   public boolean c;
/*     */   private boolean f;
/*     */   public List<Future<o>> s;
/*     */   public String m;
/*     */   public boolean l;
/*     */   private final String t;
/*     */   public String d;
/*     */   public long w;
/*  95 */   private String z = "Functions"; public int q;
/*     */   private boolean g;
/*  97 */   public long i = 1L;
/*     */   
/*     */   public enum eos/moe/dragoncore/ng {
/* 100 */     z, i, w, q;
/*     */   }
/*     */ 
/*     */   
/*     */   public vh(String str, YamlConfiguration yamlConfiguration, Map map, Container container, eos/moe/dragoncore/ng eos/moe/dragoncore/ng1) {
/* 105 */     super(container);
/* 106 */     this.m = yamlConfiguration.getString("match", "");
/* 107 */     this.v = str;
/* 108 */     this.k = yamlConfiguration.getFileName();
/* 109 */     this.aa = eos/moe/dragoncore/ng1;
/* 110 */     this.field_146287_f = -1;
/* 111 */     this.n = System.currentTimeMillis();
/* 112 */     this.ta = uu.v(this);
/* 113 */     this.ta.v("方法", "func", zg.v(this));
/* 114 */     this.p = new ArrayList<>();
/* 115 */     this.o = new ConcurrentHashMap<>();
/* 116 */     this.s = new CopyOnWriteArrayList<>();
/*     */ 
/*     */     
/* 119 */     this.field_146294_l = pl.g.func_78326_a();
/* 120 */     this.field_146295_m = pl.g.func_78326_a();
/*     */     
/* 122 */     this.t = yamlConfiguration.getFileName();
/*     */ 
/*     */     
/* 125 */     this.x.put(yamlConfiguration.getFileName(), yamlConfiguration.reloadFromString());
/* 126 */     for (String str1 : yamlConfiguration.getStringList("import")) {
/* 127 */       YamlConfiguration yamlConfiguration1 = (YamlConfiguration)map.get(str1.toLowerCase(Locale.ROOT));
/* 128 */       if (yamlConfiguration1 != null) {
/* 129 */         this.x.put(yamlConfiguration1.getFileName(), yamlConfiguration1.reloadFromString());
/*     */         
/*     */         try {
/* 132 */           UUID uUID = UUID.fromString(yamlConfiguration1.getFileName().replace(".yml", "").replace("Gui/", ""));
/* 133 */           this.d = yamlConfiguration1.getFileName();
/* 134 */         } catch (Exception exception) {}
/*     */       } 
/*     */     } 
/*     */ 
/*     */     
/* 139 */     if (this.d == null) {
/* 140 */       this.d = "Gui/" + UUID.randomUUID() + ".yml";
/* 141 */       this.x.put(this.d, new YamlConfiguration(this.d));
/*     */     } 
/*     */ 
/*     */     
/* 145 */     this.e = sk.v(this.x.values());
/*     */     
/* 147 */     reloadFromYaml(this.e);
/*     */   }
/*     */ 
/*     */   
/*     */   public void open() {
/* 152 */     runGuiAction(wn.k);
/* 153 */     this.f = true;
/*     */     
/* 155 */     if (this.aa == eos/moe/dragoncore/ng.z || this.aa == eos/moe/dragoncore/ng.i) {
/* 156 */       uy.v("DragonCore", new String[] { "screen_open", this.k });
/*     */     }
/*     */   }
/*     */   
/*     */   public void reloadFunctions(String str, int i) {
/* 161 */     this.z = str;
/*     */     
/* 163 */     if (i > 0) {
/* 164 */       for (Future<o> future : this.s) {
/* 165 */         if (!future.isCancelled()) {
/* 166 */           future.cancel((i == 2));
/*     */         }
/*     */       } 
/* 169 */       this.s.clear();
/*     */     } 
/* 171 */     this.o.clear();
/*     */     
/* 173 */     ConfigurationSection configurationSection = this.e.getConfigurationSection(str);
/* 174 */     if (configurationSection != null) {
/* 175 */       for (String str1 : configurationSection.getKeys(false)) {
/* 176 */         Object object = configurationSection.get(str1);
/* 177 */         if (object != null) {
/* 178 */           this.o.put(str1, parseExpression(configurationSection.get(str1)));
/*     */         }
/*     */       } 
/*     */     }
/*     */   }
/*     */   
/*     */   public void addImport(YamlConfiguration yamlConfiguration) {
/* 185 */     yamlConfiguration = yamlConfiguration.reloadFromString();
/*     */ 
/*     */     
/* 188 */     this.x.put(yamlConfiguration.getFileName(), yamlConfiguration);
/* 189 */     this.e = sk.v(this.x.values());
/*     */     
/* 191 */     reloadFunctions(this.z, 0);
/*     */     
/* 193 */     Map<String, pi> map = an.v(this, yamlConfiguration);
/*     */     
/* 195 */     this.ua.putAll(map);
/* 196 */     for (pi pi1 : map.values()) {
/* 197 */       pi1.runAction("create");
/*     */     }
/* 199 */     reloadLowNameComponents();
/*     */   }
/*     */   
/*     */   public void removeImport(String str) {
/* 203 */     String str1 = "Gui/" + str + ".yml";
/* 204 */     this.x.remove(str1);
/* 205 */     this.e = sk.v(this.x.values());
/* 206 */     reloadFunctions(this.z, 0);
/* 207 */     this.ua.entrySet().removeIf(entry -> ((pi)entry.getValue()).xa.getFileName().equals(a));
/* 208 */     reloadLowNameComponents();
/*     */   }
/*     */   
/*     */   public void reloadFromYaml(YamlConfiguration yamlConfiguration) {
/* 212 */     this.e = yamlConfiguration;
/*     */     
/* 214 */     reloadFunctions("Functions", 0);
/* 215 */     this.q = yamlConfiguration.getInt("updateInterval");
/* 216 */     this.l = parseExpression(yamlConfiguration.get("hide", Boolean.valueOf(false))).z();
/* 217 */     this.qa = parseExpression(yamlConfiguration.get("debug", Boolean.valueOf(false))).z();
/* 218 */     this.na = parseExpression(yamlConfiguration.get("through", Boolean.valueOf(false))).z();
/* 219 */     this.ea = new HashSet<>(yamlConfiguration.getStringList("hideHud"));
/* 220 */     this.y = yamlConfiguration.getInt("priority");
/* 221 */     this.c = (yamlConfiguration.getBoolean("interactHud") && this.aa == eos/moe/dragoncore/ng.z);
/*     */ 
/*     */     
/* 224 */     Map<String, pi> map = an.v(this, yamlConfiguration);
/* 225 */     if (this.ua != null) {
/* 226 */       for (Map.Entry<String, pi> entry : this.ua.entrySet()) {
/* 227 */         pi pi1 = map.get(entry.getKey());
/* 228 */         if (pi1 != null) {
/* 229 */           pi1.c = ((pi)entry.getValue()).c;
/* 230 */           pi1.r = ((pi)entry.getValue()).r;
/* 231 */           if (pi1 instanceof od && entry.getValue() instanceof od) {
/* 232 */             ((od)pi1).setFocused(((od)entry.getValue()).isFocused());
/* 233 */             ((od)pi1).setText(((od)entry.getValue()).getText());
/*     */           } 
/* 235 */           if (pi1 instanceof fm && entry.getValue() instanceof fm) {
/* 236 */             ((fm)pi1).setText(((fm)entry.getValue()).getText());
/*     */           }
/* 238 */           pi1.na = ((pi)entry.getValue()).na; continue;
/*     */         } 
/* 240 */         ((pi)entry.getValue()).runAction("remove");
/*     */       } 
/*     */       
/* 243 */       this.ua.clear();
/* 244 */       this.ua = map;
/*     */     } else {
/* 246 */       this.ua = map;
/* 247 */       for (pi pi1 : map.values()) {
/* 248 */         pi1.runAction("create");
/*     */       }
/*     */     } 
/* 251 */     reloadLowNameComponents();
/*     */     
/* 253 */     this.ha = parseExpression(yamlConfiguration.get("currentItemSize", Integer.valueOf(16)));
/* 254 */     this.xa = parseExpression(yamlConfiguration.get("allowEscClose", Boolean.valueOf(true)));
/* 255 */     if (this.f) {
/* 256 */       runGuiAction(wn.o);
/*     */     }
/*     */   }
/*     */   
/*     */   public void reloadLowNameComponents() {
/* 261 */     if (this.ia != null) {
/* 262 */       this.ia.clear();
/*     */     }
/* 264 */     this.ia = new ConcurrentHashMap<>();
/* 265 */     for (Map.Entry<String, pi> entry : this.ua.entrySet()) {
/* 266 */       this.ia.put(((String)entry.getKey()).toLowerCase(Locale.ROOT), (pi)entry.getValue());
/*     */     }
/*     */   }
/*     */ 
/*     */   
/*     */   public void setOriginalName(String str) {
/* 272 */     this.oa = str;
/*     */   }
/*     */   
/*     */   public void setOriginalGui(GuiScreen guiScreen) {
/* 276 */     this.sa = guiScreen;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_73863_a(int i, int j, float f) {
/* 284 */     long l = System.nanoTime();
/* 285 */     this.p.clear();
/* 286 */     this.a = null;
/*     */     
/* 288 */     GuiScreen guiScreen = (Minecraft.func_71410_x()).field_71462_r;
/* 289 */     this.field_146294_l = pl.g.func_78326_a();
/* 290 */     this.field_146295_m = pl.g.func_78328_b();
/*     */     
/* 292 */     if (this.l) {
/* 293 */       this.i = 1L;
/*     */       
/*     */       return;
/*     */     } 
/*     */     
/* 298 */     runGuiAction(wn.y);
/*     */ 
/*     */     
/* 301 */     List list = new ArrayList(this.ua.values());
/* 302 */     list.sort(Comparator.comparingDouble(a -> a.a.z()));
/*     */     
/* 304 */     if (this.q > 0 && System.currentTimeMillis() - this.w > this.q) {
/* 305 */       for (pi pi1 : list) {
/* 306 */         if (pi1.sa.z())
/* 307 */           pi1.cache(i, j); 
/*     */       } 
/* 309 */       runGuiAction("cache");
/* 310 */       this.w = System.currentTimeMillis();
/*     */     } 
/*     */     
/* 313 */     if (guiScreen != null) {
/* 314 */       for (pi pi1 : list) {
/* 315 */         long l1 = System.nanoTime();
/* 316 */         if (pi1.isHovered(i, j)) {
/* 317 */           this.a = pi1;
/* 318 */           this.p.add(pi1);
/*     */         } 
/* 320 */         pi1.ka = System.nanoTime() - l1;
/*     */       } 
/*     */     }
/* 323 */     GlStateManager.func_179094_E();
/* 324 */     for (pi pi1 : list) {
/*     */       
/* 326 */       long l1 = System.nanoTime();
/* 327 */       pi1.draw(i, j, this.qa);
/* 328 */       pi1.ka += System.nanoTime() - l1;
/*     */     } 
/*     */     
/* 331 */     for (pi pi1 : list) {
/* 332 */       pi1.ea = pi1.ka;
/*     */     }
/*     */     
/* 335 */     GlStateManager.func_179121_F();
/* 336 */     GlStateManager.func_179140_f();
/* 337 */     super.func_73863_a(i, j, f);
/*     */ 
/*     */     
/* 340 */     if (guiScreen != null) {
/* 341 */       drawHoverTip(f, i, j);
/* 342 */       drawHoverITextComponent(i, j);
/*     */     } 
/* 344 */     GlStateManager.func_179140_f();
/*     */     
/* 346 */     runGuiAction(wn.h);
/*     */     
/* 348 */     this.i = System.nanoTime() - l;
/*     */   }
/*     */   
/*     */   public void drawHoverITextComponent(int i, int j) {
/* 352 */     if (this.a != null && this.a instanceof if) {
/* 353 */       if if = (if)this.a;
/* 354 */       ITextComponent iTextComponent = if.getTextComponent(i, j);
/* 355 */       if (iTextComponent != null && iTextComponent.func_150256_b().func_150210_i() != null) {
/* 356 */         func_175272_a(iTextComponent, i, j);
/*     */       }
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_73864_a(int i, int j, int k) throws IOException {
/* 364 */     if (this.l) {
/*     */       return;
/*     */     }
/* 367 */     switch (k) {
/*     */       case 0:
/* 369 */         this.ka = "MOUSE_LEFT";
/*     */         break;
/*     */       case 1:
/* 372 */         this.ka = "MOUSE_RIGHT";
/*     */         break;
/*     */       case 2:
/* 375 */         this.ka = "MOUSE_MIDDLE";
/*     */         break;
/*     */     } 
/* 378 */     boolean bool = runGuiAction(wn.u);
/* 379 */     switch (k) {
/*     */       case 0:
/* 381 */         bool = (bool || runGuiAction(wn.j));
/*     */         break;
/*     */       case 1:
/* 384 */         bool = (bool || runGuiAction(wn.c));
/*     */         break;
/*     */       case 2:
/* 387 */         bool = (bool || runGuiAction(wn.r));
/*     */         break;
/*     */     } 
/* 390 */     this.ka = "";
/* 391 */     if (bool) {
/*     */       return;
/*     */     }
/*     */     
/* 395 */     super.func_73864_a(i, j, k);
/* 396 */     ArrayList arrayList = new ArrayList(this.ua.values());
/* 397 */     arrayList.sort(Comparator.comparingDouble(a -> a.a.z()));
/*     */     
/* 399 */     if (isThrough()) {
/* 400 */       for (pi pi1 : this.p) {
/* 401 */         if (pi1.oa.z()) {
/* 402 */           pi1.g.put(Integer.valueOf(k), new Point((int)(i - pi1.c), (int)(j - pi1.r)));
/* 403 */           pi1.runClick(i, j, k);
/*     */         } 
/*     */       } 
/* 406 */       for (pi pi1 : arrayList) {
/* 407 */         if (!this.p.contains(pi1)) {
/* 408 */           pi1.runUnClick(i, j, k);
/*     */         }
/*     */       } 
/*     */     } else {
/*     */       
/* 413 */       pi pi1 = null;
/* 414 */       pi pi2 = getHoveredComponent();
/* 415 */       if (pi2 != null && pi2.oa.z()) {
/* 416 */         pi1 = pi2;
/* 417 */         pi2.g.put(Integer.valueOf(k), new Point((int)(i - pi2.c), (int)(j - pi2.r)));
/*     */ 
/*     */         
/* 420 */         pi2.runClick(i, j, k);
/*     */       } 
/* 422 */       for (pi pi3 : arrayList) {
/* 423 */         if (pi3 != pi1) {
/* 424 */           pi3.runUnClick(i, j, k);
/*     */         }
/*     */       } 
/*     */     } 
/* 428 */     if (this.c) {
/* 429 */       for (vh vh1 : pl.i.values()) {
/* 430 */         vh1.func_73864_a(i, j, k);
/*     */       }
/*     */     }
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_146286_b(int i, int j, int k) {
/* 437 */     if (this.l) {
/*     */       return;
/*     */     }
/* 440 */     boolean bool = runGuiAction(wn.f);
/* 441 */     switch (k) {
/*     */       case 0:
/* 443 */         bool = (bool || runGuiAction(wn.s));
/*     */         break;
/*     */       case 1:
/* 446 */         bool = (bool || runGuiAction(wn.m));
/*     */         break;
/*     */       case 2:
/* 449 */         bool = (bool || runGuiAction(wn.l));
/*     */         break;
/*     */     } 
/* 452 */     if (bool) {
/*     */       return;
/*     */     }
/*     */     
/* 456 */     super.func_146286_b(i, j, k);
/* 457 */     ArrayList arrayList = new ArrayList(this.ua.values());
/*     */ 
/*     */     
/* 460 */     for (pi pi1 : arrayList) {
/* 461 */       if (pi1.g.remove(Integer.valueOf(k)) != null) {
/* 462 */         pi1.runRelease(i, j, k);
/*     */       }
/*     */     } 
/* 465 */     if (this.c) {
/* 466 */       for (vh vh1 : pl.i.values()) {
/* 467 */         vh1.func_146286_b(i, j, k);
/*     */       }
/*     */     }
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_146282_l() throws IOException {
/* 474 */     char c = Keyboard.getEventCharacter();
/* 475 */     if ((Keyboard.getEventKey() == 0 && c >= ' ') || Keyboard.getEventKeyState()) {
/* 476 */       func_73869_a(c, Keyboard.getEventKey());
/*     */     } else {
/* 478 */       if (this.l) {
/*     */         return;
/*     */       }
/* 481 */       int i = Keyboard.getEventKey();
/* 482 */       String str = Keyboard.getKeyName(i);
/*     */       
/* 484 */       if (this.aa == eos/moe/dragoncore/ng.z) {
/* 485 */         dha.t.v(str);
/*     */       }
/* 487 */       this.ka = str;
/* 488 */       boolean bool = runGuiAction(wn.a);
/* 489 */       this.ka = "";
/*     */       
/* 491 */       if (!bool && this.c) {
/* 492 */         for (vh vh1 : pl.i.values()) {
/* 493 */           vh1.ka = str;
/* 494 */           vh1.runGuiAction(wn.a);
/* 495 */           vh1.ka = "";
/*     */         } 
/*     */       }
/*     */     } 
/* 499 */     this.field_146297_k.func_152348_aa();
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_146273_a(int i, int j, int k, long l) {
/* 504 */     if (this.l) {
/*     */       return;
/*     */     }
/* 507 */     super.func_146273_a(i, j, k, l);
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_73869_a(char c, int i) throws IOException {
/* 512 */     keyTyped_(c, i);
/*     */   }
/*     */   
/*     */   public boolean keyTyped_(char c, int i) throws IOException {
/* 516 */     if (this.l) {
/* 517 */       return false;
/*     */     }
/* 519 */     boolean bool1 = false;
/* 520 */     boolean bool2 = false;
/* 521 */     if (this.aa == eos/moe/dragoncore/ng.z) {
/* 522 */       bool1 = dha.t.v(Keyboard.getKeyName(i));
/*     */     }
/*     */     
/* 525 */     this.ka = Keyboard.getKeyName(i);
/* 526 */     bool2 = runGuiAction(wn.x);
/* 527 */     this.ka = "";
/* 528 */     if (bool2) {
/* 529 */       return true;
/*     */     }
/*     */     
/* 532 */     if (i == 1 && this.xa.z()) {
/* 533 */       this.field_146297_k.field_71439_g.func_71053_j();
/*     */     }
/*     */     
/* 536 */     ArrayList arrayList = new ArrayList(this.ua.values());
/*     */ 
/*     */     
/* 539 */     super.func_73869_a(c, i);
/* 540 */     for (pi pi1 : arrayList) {
/* 541 */       if (pi1.sa.z() && pi1.oa.z()) {
/* 542 */         bool1 = (bool1 || pi1.keyTyped(c, i));
/*     */       }
/*     */     } 
/* 545 */     if (this.c) {
/* 546 */       for (vh vh1 : pl.i.values()) {
/* 547 */         vh1.func_73869_a(c, i);
/*     */       }
/*     */     }
/* 550 */     return bool1;
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_146274_d() throws IOException {
/* 555 */     handleMouseInput_();
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean handleMouseInput_() throws IOException {
/* 560 */     if (this.l) {
/* 561 */       return false;
/*     */     }
/* 563 */     int i = Mouse.getEventX() * this.field_146294_l / this.field_146297_k.field_71443_c;
/* 564 */     int j = this.field_146295_m - Mouse.getEventY() * this.field_146295_m / this.field_146297_k.field_71440_d - 1;
/* 565 */     int k = Mouse.getEventButton();
/* 566 */     if (Mouse.getEventButtonState()) {
/* 567 */       if (this.field_146297_k.field_71474_y.field_85185_A && this.field_146298_h++ > 0) {
/* 568 */         return false;
/*     */       }
/*     */       
/* 571 */       this.field_146287_f = k;
/* 572 */       this.field_146288_g = Minecraft.func_71386_F();
/* 573 */       func_73864_a(i, j, this.field_146287_f);
/* 574 */     } else if (k != -1) {
/* 575 */       if (this.field_146297_k.field_71474_y.field_85185_A && --this.field_146298_h > 0) {
/* 576 */         return false;
/*     */       }
/* 578 */       this.field_146287_f = -1;
/* 579 */       func_146286_b(i, j, k);
/*     */     } else {
/* 581 */       runGuiAction(wn.t);
/* 582 */       runGuiAction(wn.d);
/* 583 */       if (this.field_146287_f != -1 && this.field_146288_g > 0L) {
/* 584 */         long l = Minecraft.func_71386_F() - this.field_146288_g;
/* 585 */         func_146273_a(i, j, this.field_146287_f, l);
/*     */       } 
/*     */     } 
/* 588 */     if (Mouse.getEventDWheel() != 0) {
/* 589 */       if (this.aa == eos/moe/dragoncore/ng.z && 
/* 590 */         dha.t.v()) {
/* 591 */         return true;
/*     */       }
/*     */       
/* 594 */       return runWheel();
/*     */     } 
/* 596 */     return false;
/*     */   }
/*     */   
/*     */   public boolean runWheel() {
/* 600 */     if (this.l) {
/* 601 */       return false;
/*     */     }
/* 603 */     boolean bool = false;
/* 604 */     if (runGuiAction(wn.p))
/* 605 */       bool = true; 
/* 606 */     for (pi pi1 : this.p) {
/* 607 */       bool = (bool || pi1.runAction("wheel").v());
/*     */     }
/* 609 */     if (this.c) {
/* 610 */       for (vh vh1 : pl.i.values()) {
/* 611 */         vh1.runWheel();
/*     */       }
/*     */     }
/* 614 */     return bool;
/*     */   }
/*     */ 
/*     */   
/*     */   public Map<String, pi> getComponents() {
/* 619 */     return this.ua;
/*     */   }
/*     */   
/*     */   public pi findComponent(String str) {
/* 623 */     return this.ua.get(str);
/*     */   }
/*     */ 
/*     */   
/*     */   public pi getHoveredComponent() {
/* 628 */     return this.a;
/*     */   }
/*     */ 
/*     */   
/*     */   public List<pi> getHoveredComponents() {
/* 633 */     return this.p;
/*     */   }
/*     */   
/*     */   public boolean runGuiAction(wn wn1) {
/* 637 */     return runGuiAction(wn1.v());
/*     */   }
/*     */   
/*     */   public boolean runGuiAction(String str) {
/* 641 */     bh bh1 = this.o.get(str);
/* 642 */     if (bh1 != null) {
/* 643 */       return bh1.z();
/*     */     }
/* 645 */     return false;
/*     */   }
/*     */   
/*     */   public bh parseExpression(Object object) {
/* 649 */     String str = String.valueOf(object);
/* 650 */     if (str.startsWith("co|") || str.startsWith("mo|")) {
/* 651 */       str = str.substring(3);
/*     */     }
/*     */     
/* 654 */     str = v(str);
/* 655 */     return uu.v(this.ta, str);
/*     */   }
/*     */ 
/*     */   
/*     */   public bh parseExpression(String str) {
/* 660 */     if (!str.startsWith("co|") && !str.startsWith("mo|")) {
/*     */ 
/*     */       
/* 663 */       if (v(str)) {
/* 664 */         str = v(str);
/* 665 */         return uu.v(this.ta, str);
/*     */       } 
/*     */       
/* 668 */       if (!str.startsWith("'")) {
/* 669 */         str = "'" + str + "'";
/*     */       }
/*     */     } else {
/* 672 */       str = str.substring(3);
/*     */     } 
/* 674 */     str = v(str);
/*     */     
/* 676 */     return uu.v(this.ta, str);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public bh getCurrentItemScale() {
/* 710 */     return this.ha;
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean isHud() {
/* 715 */     return (this.aa == eos/moe/dragoncore/ng.i);
/*     */   }
/*     */   
/*     */   public YamlConfiguration getYaml() {
/* 719 */     return this.e;
/*     */   }
/*     */ 
/*     */   
/*     */   public qp getMoLangRuntime() {
/* 724 */     return this.ta;
/*     */   }
/*     */   
/*     */   public void onScreenResize() {
/* 728 */     runGuiAction(wn.z);
/*     */   }
/*     */   
/*     */   public void onGuiClosed1() {
/* 732 */     if (this.g) {
/* 733 */       this.g = false;
/*     */       return;
/*     */     } 
/* 736 */     runGuiAction(wn.i);
/* 737 */     this.b = true;
/* 738 */     for (pi pi1 : new ArrayList(this.ua.values())) {
/* 739 */       pi1.close();
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_146281_b() {
/* 746 */     onGuiClosed1();
/* 747 */     super.func_146281_b();
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void ignoreNextClose() {
/* 754 */     this.g = true;
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean isThrough() {
/* 759 */     return this.na;
/*     */   }
/*     */ 
/*     */   
/*     */   public String getMatch() {
/* 764 */     return this.m;
/*     */   }
/*     */   
/*     */   public boolean isLoaded() {
/* 768 */     return this.f;
/*     */   }
/*     */ 
/*     */   
/*     */   public void initGui_() {
/* 773 */     this.field_146297_k = Minecraft.func_71410_x();
/* 774 */     Keyboard.enableRepeatEvents(true);
/* 775 */     this.field_146289_q = this.field_146297_k.field_71466_p;
/* 776 */     this.field_146296_j = this.field_146297_k.func_175599_af();
/*     */   }
/*     */ 
/*     */   
/*     */   public void save() {
/* 781 */     YamlConfiguration yamlConfiguration = this.x.get(this.t);
/* 782 */     List<String> list = yamlConfiguration.getStringList("import");
/* 783 */     if (!list.contains(this.d) && ((YamlConfiguration)this.x.get(this.d)).getKeys(false).size() > 0) {
/* 784 */       list.add(this.d.replace("Gui/", "").replace(".yml", ""));
/* 785 */       yamlConfiguration.set("import", list);
/*     */     } 
/* 787 */     File file = new File(nm.t.getParentFile(), "DragonCore_Output");
/* 788 */     for (Map.Entry<String, YamlConfiguration> entry : this.x.entrySet()) {
/*     */       try {
/* 790 */         ((YamlConfiguration)entry.getValue()).save(new File(file, (String)entry.getKey()));
/* 791 */       } catch (IOException iOException) {
/* 792 */         iOException.printStackTrace();
/*     */       } 
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   public void func_184098_a(Slot slot, int i, int j, ClickType clickType) {
/* 799 */     if (slot == null && i == -999 && 
/* 800 */       runGuiAction(wn.w)) {
/*     */       return;
/*     */     }
/*     */     
/* 804 */     super.func_184098_a(slot, i, j, clickType);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\vh.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */